﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
{
    public string test = "";
    public string value = "";
    public string hours = "";
    public string minute = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            for (var i = 0; i < 24; i++)
            {
                for (var l = 0; l < 60; l++)
                {
                    var thistime = "\"" + i.ToString().PadLeft(2, '0') + ":" + l.ToString().PadLeft(2, '0')+ "\"";
                    test += thistime + ",";
                    value += "["+ thistime + ",\"\",\"\"],";
                }
            }

            //for (int i = 0; i < 24; i++)
            //{
            //    hours += "\"" + i.ToString().PadLeft(2, '0') + "\",";
            //}

            for (int i = 0; i < 60; i++)
            {
                minute += "option value=\"" + i.ToString().PadLeft(2, '0') + "\">" + i.ToString().PadLeft(2, '0') + "/option><br/>";
            }

            test = test.Remove(test.Length - 1, 1);
            test = "[" + test + "]";

            value = value.Remove(value.Length - 1, 1);
            value = "[" + value + "]";

            //hours = hours.Remove(hours.Length - 1, 1);
            //hours = "[" + hours + "]";

            minute = minute.Remove(minute.Length - 1, 1);
        }
    }
}